package org.EasyDevelop;

import org.EasyDevelop.Bean.TableInfo;
import org.EasyDevelop.Builder.*;

import java.util.List;

public class RunApplication {
    public static void main(String[] args) {
        List<TableInfo> tables = TableBuilder.getTables();
        for (TableInfo table : tables) {
            System.out.println(table.getBeanName() + " ---> START");
            System.out.println("\tPo对象生成中.....");
            PoBuilder.execute(table);
            System.out.println("\tQuery对象生成中.....");
            QueryBuilder.execute(table);
            System.out.println("\tMapper对象生成中.....");
            MapperBuilder.execute(table);
            System.out.println("\tMapperXML文件生成中.....");
            MapperXMLBuilder.execute(table);
            System.out.println("\tService文件生成中.....");
            ServiceBuilder.execute(table);
            System.out.println("\tServiceImpl文件生成中.....");
            ServiceImplBuilder.execute(table);
            System.out.println("\tController文件生成中.....");
            ControllerBuilder.execute(table);
            System.out.println(table.getBeanName() + " ---> END");
        }
        System.out.println("基本通用类对象生成中.....");
        BaseBuilder.execute();
        System.out.println("欧克!!!请开始你的表演!");
    }
}
